package com.example.demo.service.Impl;

import java.util.List;


import org.springframework.stereotype.Service;

import com.example.demo.entity.Food;
import com.example.demo.service.Food_Service;
import com.example.demo.utils.Searchinfo;
@Service
public class Food_ServiceImpl extends  Basic_serviceimpl<Food> implements Food_Service {
	@Override
	public List<Food> select(Searchinfo info) {
		if(info.getWhere()!=null&&info.getWhere().length()>0) {
			
		}else {
		String where="";
		if(info.getSearch()!=null&&info.getSearch().length()>0) {
			where =" where Food.name like '%"+info.getSearch()+"%' ";
		}
		info.setWhere(where);
		}
		return super.select(info);
		}
	}

